package com.snowflake.ecatalog.contant;

import java.util.HashMap;
import java.util.Map;

public class Status {
	private final static Map<Integer, String> ALIAS = new HashMap<Integer, String>();
	/** 启用 **/
	public static final int ENABLE = 1;
	/** 禁用 **/
	public static final int DISABLE = 0;
	/** 启用 **/
	public static final String ENABLE_ALIAS = "启用 ";
	/** 禁用 **/
	public static final String DISABLE_ALIAS = "禁用";

	static {
		ALIAS.put(ENABLE, ENABLE_ALIAS);
		ALIAS.put(DISABLE, DISABLE_ALIAS);
	}

	/**
	 * 获取状态别名
	 * 
	 * @param status
	 * @return
	 */
	public static String alias(int status) {
		return ALIAS.get(status);
	}
}
